/*
 * ProtocolDefinitions.h
 *
 *  Created on: Aug 17, 2012
 *      Author: steffen
 */

#ifndef PROTOCOLDEFINITIONS_H_
#define PROTOCOLDEFINITIONS_H_

// Every packet of the RS232 protocol consists of a certain number of:
//
// command bytes  -> NUMBER_OF_COMMAND_BYTES
// data bytes   -> NUMBER_OF_DATA_BYTES
#define NUMBER_OF_COMMAND_BYTES 2
#define NUMBER_OF_DATA_BYTES 6

// The data bytes can be structured in different ways. A data byte can describe the
// following structures independent of the command byte:
//
// register address - register data combination:
//
// the number of bytes used for the register address is determined by DATA_BYTES_REGISTER_ADDRESS
// the number of bytes used for the register data is determined by DATA_BYTES_REGISTER_DATA
#define DATA_BYTES_REGISTER_ADDRESS 2
#define DATA_BYTES_REGISTER_VALUE 4


#define START_BYTE '#'


#endif /* PROTOCOLDEFINITIONS_H_ */
